import {BasicColumn} from '/@/components/Table';
import {FormSchema} from '/@/components/Table';
import { rules} from '/@/utils/helper/validator';
import { render } from '/@/utils/common/renderUtils';
import { getWeekMonthQuarterYear } from '/@/utils';
//列表数据
export const columns: BasicColumn[] = [
  {
    title: '创建日期',
    align: "center",
    sorter: true,
    dataIndex: 'createTime'
  },
  {
    title: '手机号',
    align: "center",
    dataIndex: 'phone'
  },
  {
    title: '是否已回复',
    align: "center",
    dataIndex: 'replyStatus_dictText'
  },
  {
    title: '皮肤是否痒',
    align: "center",
    dataIndex: 'skinItch'
  },
  {
    title: '腹部症状',
    align: "center",
    dataIndex: 'abdominalSymptoms'
  },
  {
    title: '是否头痛',
    align: "center",
    dataIndex: 'dizziness'
  },
  {
    title: '是否容易疲劳',
    align: "center",
    dataIndex: 'fatigue'
  },
  {
    title: '脚部症状',
    align: "center",
    dataIndex: 'footSymptoms'
  },
  {
    title: '视力情况',
    align: "center",
    dataIndex: 'vision'
  },
  {
    title: '口渴情况',
    align: "center",
    dataIndex: 'thirst'
  },
  {
    title: '泌尿系统症状',
    align: "center",
    dataIndex: 'urinarySymptoms'
  },
  {
    title: '大便情况',
    align: "center",
    dataIndex: 'stool'
  },
  {
    title: '睡眠情况',
    align: "center",
    dataIndex: 'sleepProblem'
  },
  {
    title: '饮食偏好',
    align: "center",
    dataIndex: 'foodPreference'
  },
  {
    title: '血糖情况',
    align: "center",
    dataIndex: 'diabetes'
  },
  {
    title: '其他不适症状',
    align: "center",
    dataIndex: 'otherSymptoms'
  },
  {
    title: '年龄',
    align: "center",
    sorter: true,
    dataIndex: 'age'
  },
  {
    title: '性别',
    align: "center",
    sorter: true,
    dataIndex: 'gender'
  },
  {
    title: '体重',
    align: "center",
    sorter: true,
    dataIndex: 'weight'
  },
];

// 高级查询数据
export const superQuerySchema = {
  createTime: {title: '创建日期',order: 0,view: 'datetime', type: 'string',},
  skinItch: {title: '皮肤是否痒',order: 1,view: 'text', type: 'string',},
  abdominalSymptoms: {title: '腹部症状',order: 2,view: 'text', type: 'string',},
  fatigue: {title: '是否容易疲劳',order: 3,view: 'text', type: 'string',},
  footSymptoms: {title: '脚部症状',order: 4,view: 'text', type: 'string',},
  vision: {title: '视力情况',order: 5,view: 'text', type: 'string',},
  thirst: {title: '口渴情况',order: 6,view: 'text', type: 'string',},
  urinarySymptoms: {title: '泌尿系统症状',order: 7,view: 'text', type: 'string',},
  stool: {title: '大便情况',order: 8,view: 'text', type: 'string',},
  sleepProblem: {title: '睡眠情况',order: 9,view: 'textarea', type: 'string',},
  foodPreference: {title: '饮食偏好',order: 10,view: 'text', type: 'string',},
  diabetes: {title: '血糖情况',order: 11,view: 'textarea', type: 'string',},
  otherSymptoms: {title: '其他不适症状',order: 12,view: 'textarea', type: 'string',},
  age: {title: '年龄',order: 13,view: 'number', type: 'number',},
  gender: {title: '性别',order: 14,view: 'text', type: 'string',},
  weight: {title: '体重',order: 15,view: 'number', type: 'number',},
};
